package comxin.demo1.nodestream;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 测试写入数据的三种方法
 */
public class FileOutputStreamdemo_01 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("E:\\IOdemo\\FileOutputStream");
        //fos.write(97);
        byte [] b ={97,98,99,100};
        fos.write(b,1,2);
        fos.close();
    }
}
